﻿using passwords.Models;

namespace passwords
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚加密法测试
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //用户输入明文和key
            Console.Write("Please input your plaintext");
            string plain = Console.ReadLine();
            Console.Write("Please input your key");
            string key = Console.ReadLine();
            //加密
            MyEncoder myEncoder = new MyEncoder();
            myEncoder.Plaintext = plain;
            myEncoder.Key = key;
            myEncoder.Encode();

            //输出密文
            Console.WriteLine(myEncoder.Cypher);
            Console.ReadLine();
        }
    }
}